package com.qxzn.app.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/4/23.
 */

public class EventBusBean {
    /* id意义
    1、添加机器人再次扫码需要关闭的页面
    2、获取key
    3、刷新吃药提醒界面
    4、刷新家庭病例界面
    5、请求录音权限
    */
    private int id;
    private String msg;
    private int intMsg;
    private Object object;
    private Map<String, Object> paramsMap = new HashMap<>();

    private EventBusBean(Builder builder) {
        id = builder.id;
        msg = builder.msg;
        intMsg = builder.intMsg;
        object = builder.object;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIntMsg() {
        return intMsg;
    }

    public void setIntMsg(int intMsg) {
        this.intMsg = intMsg;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Map<String, Object> getParamsMap() {
        return paramsMap;
    }

    public void setParamsMap(Map<String, Object> paramsMap) {
        this.paramsMap = paramsMap;
    }

    public static class Builder {
        private int id;
        private String msg;
        private int intMsg;
        private Object object;

        public Builder id(int id) {
            this.id = id;
            return this;
        }

        public Builder msg(String msg) {
            this.msg = msg;
            return this;
        }

        public Builder intMsg(int intMsg) {
            this.intMsg = intMsg;
            return this;
        }

        public Builder object(Object object) {
            this.object = object;
            return this;
        }

        public EventBusBean build() {
            return new EventBusBean(this);
        }
    }
}
